//
//  KYCheckInPrizeDetialModel.m
//  KYCheckInSDK
//
//  Created by 罗新 on 2017/11/3.
//  Copyright © 2017年 KuaiYan  Co.,LTD. All rights reserved.
//

#import "KYCheckInPrizeDetialModel.h"
@implementation KYCheckInPrizeDetialModel
+ (instancetype)checkInPrizeDetialModelWithDict:(NSDictionary *)dict{
    KYCheckInPrizeDetialModel *model = [[KYCheckInPrizeDetialModel alloc] init];
    model.headline = dict[@"headline"];
    model.descriptionStr = dict[@"description"];
    model.imageurl = dict[@"imageurl"];
    model.url = dict[@"url"];
    model.apkurl = dict[@"apkurl"];
    model.c2_url = dict[@"c2_url"];
    return model;
}
- (void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeObject:self.headline forKey:@"headline"];
    [aCoder encodeObject:self.descriptionStr forKey:@"descriptionStr"];
    [aCoder encodeObject:self.imageurl forKey:@"imageurl"];
    [aCoder encodeObject:self.url forKey:@"url"];
    [aCoder encodeObject:self.apkurl forKey:@"apkurl"];
    [aCoder encodeObject:self.c2_url forKey:@"c2_url"];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self.headline = [aDecoder decodeObjectForKey:@"headline"];
    self.descriptionStr = [aDecoder decodeObjectForKey:@"descriptionStr"];
    self.imageurl = [aDecoder decodeObjectForKey:@"imageurl"];
    self.url = [aDecoder decodeObjectForKey:@"url"];
    self.apkurl = [aDecoder decodeObjectForKey:@"apkurl"];
    self.c2_url = [aDecoder decodeObjectForKey:@"c2_url"];
    return self;
}
@end
